<div id="forms">
<h2>New table</h2>

<%= error_messages_for :panel %>

<% form_for :panel, :url => { :action => :create_panel} do |f| %>
  <p>
    <b>User</b><br />
    <%= f.text_field :user_id %>
  </p>

  <p>
    <b>PanelName</b><br />
    <%= f.text_field :panelName %>
  </p>

  <p>
    <b>Width</b><br />
    <%= f.text_field :width %>
  </p>

  <p>
    <b>Height</b><br />
    <%= f.text_field :height %>
  </p>

  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', panels_path %>
</div>